<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-mvinfo-edit" th:object="${mvinfo}">
            <input id="mvId" name="mvId" th:field="*{mvId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">电影名称：</label>
                <div class="col-sm-8">
                    <input id="mvName" name="mvName" th:field="*{mvName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">电影状态：</label>
                <div class="col-sm-8">
                    <select id="mvStues" name="mvStues" th:field="*{mvStues}" class="form-control m-b" type="text">
                        <option th:each="state:${Staues}" th:selected="${mvStues==state.id}"  th:value="${state.dicValue}" th:text="${state.dicName}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">电影一级菜单：</label>
                <div class="col-sm-8">
                    <select id="mvCategoryName1" name="mvCategoryName1" th:field="*{CategoryId2}"  class="form-control m-b" type="text">
                        <option th:each="one:${Lan}"  th:value="${one.CategoryValue}" th:text="${one.CategoryName}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">电影二级菜单：</label>
                <div class="col-sm-8">
                    <select id="mvCategoryName2" th:field="*{CategoryId1}" name="mvCategoryName2" class="form-control m-b" type="text">
                        <option th:each="two:${Type}"  th:value="${two.CategoryValue}" th:text="${two.CategoryName}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">电影三级菜单：</label>
                <div class="col-sm-8">
                    <select id="mvCategoryName3" name="mvCategoryName3" th:field="*{CategoryId3}"  class="form-control m-b" type="text">
                        <option th:each="three:${Name}"  th:value="${three.CategoryValue}" th:text="${three.CategoryName}"></option>
                    </select>
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/mvinfo"
		$("#form-mvinfo-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-mvinfo-edit').serialize());
			}
		});
	</script>
</body>
</html>
